All Questions
10 questions
3votes
2answers
168views
Checking the strength of a password using regexes
I'm a beginner in Python and I made a password checker. I'm following these rules: I have to use regex password must be at least 8 characters must have at least one lower case character must have at ...
8votes
2answers
10kviews
Regex Version of strip()
This problem is from Automate The Boring Stuff using Python - Chapter 7. Write a function that takes a string and does the same thing as the strip() string method. If no other arguments are passed ...
8votes
3answers
3kviews
Find website URLs that begin with http:// or https://
This is a problem from Automate the Boring Stuff from "Pattern Matching with Regular Expression". I am a beginner in Python and the purpose of this program is to match urls which start with ...
5votes
1answer
1kviews
Strong Password Detection
I did the following Excercise from Automate the boring stuff with Python Chapter 7: Write a function that uses regular exppressions to make sure the password string it is passed is strong. A ...
3votes
2answers
101views
Searching repositories for files with forbidden strings
I wrote a small tool for searching git repositories for forbidden strings that I don't want to commit publicly. It's still something basic but it does the job. The project contains three files. <...
9votes
2answers
12kviews
Find files by pattern and copy to target location
This is my solution to the Chapter 9 exercise in Automate the Boring Stuff: Selective Copy Write a program that walks through a folder tree and searches for files with a certain file extension (...
6votes
1answer
4kviews
Check if there are exactly 3 question marks, in the input string, between the pair of two numbers that add up to 10
I'm just learning about the regular expressions, and found this problem on the internet.It's a nice practice for a beginner in regexp. Problem instruction: Have the function take the string ...
7votes
5answers
8kviews
Regex password strength test
I've been following a Python programming book and reached the Regex chapter where I encountered this challenge: Write a password strength checker that checks if a password is: At least 8 character ...
3votes
1answer
107views
Inserting filename, reading data, inserting regex, and testing if each line matches - version 2
This is a improved version of the program seen in my older question. This program first displays a menu which shows some options that the user can select. Each option will the respective functions ...
6votes
1answer
113views
Inserting filename, reading data, inserting regex, and testing if each line matches
This program first displays a menu which shows some options that the user can select. Each option will the respective functions which do some things. The user can insert a filename, read data from it,...